package com.itheima.health;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author ：spt
 * @date ：Created in 2022/06/29
 * @description ：
 * @version: 1.0
 */
@Slf4j
@SpringBootApplication
@EnableScheduling //开启定时任务
@MapperScan("com.itheima.health.dao") //扫描Mapper包
@ServletComponentScan //扫描Servlet相关注解
@EnableTransactionManagement //开启事务
@EnableCaching //开启缓存技术
public class HealthApplication {

    public static void main(String[] args) {
        SpringApplication.run(HealthApplication.class, args);
        log.info("======================项目启动======================");
    }

}